package com.minhang.controller;

import com.minhang.annotation.log.SysLog;
import com.minhang.annotation.rsa.RsaSecurityParameter;
import com.minhang.utils.result.Result;
import com.minhang.utils.result.ResultGenerator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * @author rookie
 */
@RestController
@Slf4j
@RequestMapping("/user")
public class UserController {


    /**
     * 入参是否解密，默认解密  inDecode
     * 出参是否加密，默认不加密 outEncode
     * 测试数据加密
     *
     * @return
     */
    @PostMapping("/get")
    @SysLog("日志入库测试")
    @RsaSecurityParameter(inDecode = false, outEncode = true)
    public Result<String> getUser() {
        return ResultGenerator.genSuccessResult();
    }


}
